package channel

import (
	"file-server/api/model"
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)

func ChannelApi(c *gin.Context) {
	var param model.ApiParam

	c.ShouldBindJSON(&param)

	fmt.Println("收到的参数：", param)

	result := model.ApiResult{
		Code: "200",
		Msg:  "成功",
		Data: param,
	}

	c.JSON(http.StatusOK, result)
}
